package com.ly.common.core.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ly.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 用户工作经历对象 erp_user_work_experience_info
 * @author wutao
 * @date 2024-05-29
 */
@TableName ("erp_user_work_experience_info")
@ApiModel (value = "erp_user_work_experience_info对象", description = "用户工作经历")
@Data
public class UserWorkExperienceEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId (value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 用户Id
     */
    @ApiModelProperty ("用户Id")
    @TableField ("user_id")
    @Excel (name = "用户Id")
    private String userId;

    /**
     * 公司名称
     */
    @ApiModelProperty ("公司名称")
    @TableField ("company_name")
    @Excel (name = "公司名称")
    private String companyName;

    /**
     * 部门，文本
     */
    @ApiModelProperty ("部门，文本")
    @TableField ("department")
    @Excel (name = "部门，文本")
    private String department;

    /**
     * 职位，文本
     */
    @ApiModelProperty ("职位，文本")
    @TableField ("position")
    @Excel (name = "职位，文本")
    private String position;

    /**
     * 主要成绩
     */
    @ApiModelProperty ("主要成绩")
    @TableField ("achievements")
    @Excel (name = "主要成绩")
    private String achievements;

    /**
     * 离职原因
     */
    @ApiModelProperty ("离职原因")
    @TableField ("res_reason")
    @Excel (name = "离职原因")
    private String resReason;

    /**
     * 是否可用
     */
    @ApiModelProperty ("是否可用")
    @TableField ("is_used")
    @Excel (name = "是否可用")
    private Integer isUsed;

    @Override
    public String toString () {
        return new ToStringBuilder ( this, ToStringStyle.MULTI_LINE_STYLE )
                .append ( "id", getId () )
                .append ( "userId", getUserId () )
                .append ( "endTime", getEndTime () )
                .append ( "companyName", getCompanyName () )
                .append ( "department", getDepartment () )
                .append ( "position", getPosition () )
                .append ( "achievements", getAchievements () )
                .append ( "resReason", getResReason () )
                .append ( "createBy", getCreateBy () )
                .append ( "createTime", getCreateTime () )
                .append ( "updateTime", getUpdateTime () )
                .append ( "isUsed", getIsUsed () )
                .toString ();
    }
}
